#include <stdio.h>  
  
int main()  
{  
    int n,sum,i;  
    scanf("%d",&n);  
    sum = 1;  
    if (n==1)  
    {  
        printf("The monkey got %d peach in first day.\n",sum);  
    }  
    else  
    {  
    for (i=n-1;i>=1;i--)  
    {  
        sum = sum + 1;  
        sum = sum * 2;  
    }   
    printf("The monkey got %d peaches in first day.\n",sum);  
    return 0;  
    }  
 }  
